import request from '@/utils/request';
import { type Result } from '@/types/result';

// 更新聊天消息为已读
export function updateChatMessageIsReadApi(chatListId: string): Promise<Result> {
  return request.put(`/chat/message/${chatListId}`);
}

// 获取聊天消息列表
export function getChatMessageListApi(chatListId: string): Promise<Result> {
  return request.get(`/chat/message/${chatListId}`);
}
